import java.util.Scanner;

/**
 * Created by dllo on 18/3/31.
 */
public class Test01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入任意金额");
        int money = scanner.nextInt();
        int raw = money;
        int money100 = money / 100;//求有多少张100元
        money = money % 100;//求余数
        int money50 = money / 50;//求有多少张50元
        money = money % 50;//求余数
        int money20 = money / 20;//求有多少张20元
        money = money20 % 20;//求余数
        int money10 = money / 10; //求出由多少张10元
        money = money % 10;// 求余数
        int money5 = money / 5;//求出由多少张5元
        money = money % 5;//求出由多少张1元
        System.out.println(raw + "由" + money100 + "张100元," + money50 + "多少张50元,"
                + money20 + "张20元," + money10 + "张10元," + money5 + "张5元," + money + "张1元组成");
    }
}
